package com.example.source.spring.anno;

import com.example.source.pojo.CirculA;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanTest {
    @Bean
//    @ConditionalOnProperty(prefix = "spring.test", name = "enabled", matchIfMissing = false)
    CirculA circulA() {
        return new CirculA();
    }

    @Bean
    CirculA circulA(AnnoController a) {
        return new CirculA();
    }
}
